﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="audit.aspx.cs" Inherits="WEB.T_bill.audit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    审核内容
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <table style="width: 100%;">
        <tr>
            <td>
                &nbsp;
            </td>
            </tr> 
            <tr>
                <td align="center">
                    <asp:DropDownList ID="ddlbillTypeID" runat="server" AutoPostBack="True">
                        <asp:ListItem Value="1">应收审核</asp:ListItem>
                        <asp:ListItem Value="2">应付审核</asp:ListItem>
                    </asp:DropDownList>
                   时间段:
                    <asp:TextBox ID="tbTimestart" runat="server" class="Wdate" MaxLength="10"></asp:TextBox>
                    至<asp:TextBox ID="tbTimestop" runat="server" class="Wdate" MaxLength="10"></asp:TextBox>
                    <asp:DropDownList ID="ddlorder" runat="server" AutoPostBack="True">
                        <asp:ListItem Value="desc">降序</asp:ListItem>
                        <asp:ListItem Value="asc">升序</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnQuery" runat="server" Text="  查 询" OnClick="btnQuery_Click" CssClass="Submit_Query" />
                </td>
            </tr>
    </table>
    <asp:GridView ID="gvAudit" runat="server" AutoGenerateColumns="False" Style="text-align: center"
        OnRowCommand="gvAudit_RowCommand" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
        BorderWidth="1px" CellPadding="4" CssClass="distance" ForeColor="Black" GridLines="Vertical"
        Width="1000px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="sheetID" HeaderText="委托单号">
                <HeaderStyle Width="70px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="公司名称">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlcID" runat="server" DataSource='<%#GetCID() %>' DataTextField="CustomerName"
                        DataValueField="ID" SelectedValue='<%# Eval("cID") %>' Enabled="False">
                    </asp:DropDownList>
                    <asp:HiddenField ID="hfbillID" runat="server" Value='<%#Eval("billID") %>' />
                </ItemTemplate>
                <HeaderStyle Width="150px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="费用类别">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlfeeTypeID" runat="server" DataSource='<%#GetFeeType() %>'
                        DataTextField="feeName" DataValueField="feeTypeNo" AppendDataBoundItems="True"
                        SelectedValue='<%# Eval("feeTypeID") %>' Enabled="False">
                        <asp:ListItem Value="0">  &nbsp; </asp:ListItem>
                    </asp:DropDownList>
                </ItemTemplate>
                <HeaderStyle Width="100px" />
            </asp:TemplateField>
            <asp:BoundField DataField="sfeeAmount" HeaderText="费用金额">
                <HeaderStyle Width="120px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="录入人员">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlinputEmpNo" DataSource='<%#GetEmpNum() %>' DataTextField="UserName"
                        DataValueField="EMPNum" SelectedValue='<%# Eval("inputEmpNo") %>' runat="server"
                        Enabled="False">
                    </asp:DropDownList>
                </ItemTemplate>
                <HeaderStyle Width="100px" />
            </asp:TemplateField>
            <asp:BoundField DataField="inputDate" HeaderText="制单日期" DataFormatString="{0:d}" />
            <asp:BoundField DataField="remark" HeaderText="备注" />
            <asp:ButtonField ButtonType="Button" CommandName="audit" Text="审核">
                <ControlStyle CssClass="Submit_gv" />
            </asp:ButtonField>
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
        <SortedAscendingCellStyle BackColor="#F8FAFA"></SortedAscendingCellStyle>
        <SortedAscendingHeaderStyle BackColor="#246B61"></SortedAscendingHeaderStyle>
        <SortedDescendingCellStyle BackColor="#D4DFE1"></SortedDescendingCellStyle>
        <SortedDescendingHeaderStyle BackColor="#15524A"></SortedDescendingHeaderStyle>
    </asp:GridView>
</asp:Content>
